﻿using Microsoft.AspNetCore.Http;
using MyBlog.Model.Entity;
using System.ComponentModel.DataAnnotations;

namespace MyBlog.Model.ViewModels
{
    public class BlogViewModel 
    {
        public string Title { get; set; }
        /// <summary>
        /// 博客内容
        /// </summary>
        public string? Content { get; set; }
        /// <summary>
        /// 简介
        /// </summary>
        [MaxLength(200)]
        public string? Introduction { get; set; }
        /// <summary>
        /// 类型(CSharp、Java）
        /// </summary>
        public int BlogTypeId { get; set; }
        /// <summary>
        /// 博客封面
        /// </summary>
        public string Photo { get; set; }
        public List<BlogType> BlogTypes { get; set; }

        public IFormFile PhotoFile { get; set; }

    }
}
